﻿using NPOI.POIFS.Storage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WCS_Entity.AutoQeuipment;
using WCS_Entity.Dto.AutoEquipmentDto;
using WCS_Entity.Dto.ComProtocolDto;
using WCS_Entity.Prorocol;

namespace WCS_Service.Interface
{
    /// <summary>
    /// 自动化设备通信协议管理服务接口
    /// </summary>
    public interface IComProtocolService : IBaseService<ProtocolEntity>
    {
        #region 管理
        Task<ComProtocolDto> CreateComProtocolAsync(CreateComProtocolDto dto);
        Task<ComProtocolDto> UpdateComProtocolAsync(UpdateComProtocolDto dto);
        Task<ComProtocolDto> QueryComProtocolAsync(int id);
        Task<List<ComProtocolDto>> QueryAllComProtocolAsync();
        Task<bool> DeleteComProtocol(int id);
        #endregion

        Task<List<SupportProtocolMsgDto>> QueryProtocolMsgTypeAsync();
    }
}
